package com.sanri.tools.modules.mock.l7.websocket.chat.domain;

import lombok.Data;

@Data
public class ChatContact {
    private String id;
    private String displayName;
    private String avatar;
    private String index;
    private int unread;
    private long lastSendTime;
    private String lastContent;

    public ChatContact() {
    }

    public ChatContact(ChatUser chatUser) {
        this.id = chatUser.getLoginName();
        this.displayName = chatUser.getDisplayName();
        this.avatar = chatUser.getAvatar();
    }
}
